// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
// import apiConfig from '../config/api.config'
import Vue from 'vue'
import App from './App'
import router from './router'

import axios from 'axios'

import qs from 'qs'

import Vant from 'vant'

import 'vant/lib/index.css'

// rem h5 适配
import 'amfe-flexible/index.js'
// 引入 vant 组件


Vue.use(Vant)
    // axios.defaults.baseURL = apiConfig.baseUrl

// 动态改变title标题
router.beforeEach((to, from, next) => {
    /* 路由发生变化修改页面title */
    if (to.meta.title) {
        document.title = to.meta.title
    }
    next()
})

import {
    get,
    islogin

} from '@/assets/js/common.js'


Vue.prototype.$get = get
Vue.prototype.$islogin = islogin

Vue.prototype.$axios = axios
Vue.prototype.$qs = qs



// Vue.prototype.$getcode = getcode

Vue.config.productionTip = false


axios.defaults.baseURL = 'https://www.tjyyjkfwpt.com/'

/* eslint-disable no-new */
new Vue({
    el: '#app',
    router,
    components: { App },
    template: '<App/>'
})